#include<stdio.h>
int main()
{
	int a = 0;
	int b = 0;
	scanf_s("%d %d",&a,&b);
	int max = a > b ? a : b;
	while (max % a != 0 || max % b != 0)
	{
		max++;
	}
	printf("%d", max);
	return 0;
}